<h2>客户:<?php echo $model->customer_name; ?> 的业务记录</h2>

<div class="actionBar1">
<?php 
	if(isset($_GET['ok'])) {if($_GET['ok']==0) $mess='添加成功！'; else $mess='更新成功！';unset($_GET['ok']);}//判断添加/更新信息
	$act=isset($_GET['ret'])?$_GET['ret']:$ret;//判断show以后返回路径
	unset($_GET['ret']);unset($_GET['id']);
	$url=array($act)+$_GET;
?>
[<?php echo CHtml::link('返回',$url); ?>]
</div>

<table class="dataGrid" style="width:80%">
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('customer_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->customer_name); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('business_type')); ?>
</th>
    <td><?php echo CHtml::encode($model->getBusinessTypeName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('carrier_type')); ?>
</th>
    <td><?php echo CHtml::encode($model->getCarrierTypeName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('truck_times')); ?>
</th>
    <td><?php echo CHtml::encode($model->truck_times); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('tonnage')); ?>
</th>
    <td><?php echo CHtml::encode($model->tonnage); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('receivable_amount')); ?>
</th>
    <td><?php echo CHtml::encode($model->receivable_amount); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('payable_amount')); ?>
</th>
    <td><?php echo CHtml::encode($model->payable_amount); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('disparity')); ?>
</th>
    <td><?php echo CHtml::encode($model->disparity); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('disparity_ratio')); ?>
</th>
    <td><?php echo CHtml::encode(($model->disparity_ratio*100).'%'); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('loss_amount')); ?>
</th>
    <td><?php echo CHtml::encode($model->loss_amount); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('remark1')); ?>
</th>
    <td><?php echo CHtml::encode($model->remark1); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('remark2')); ?>
</th>
    <td><?php echo CHtml::encode($model->remark2); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('occur_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->occur_time); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_time); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('update_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->update_time); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_user')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_user); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('update_user')); ?>
</th>
    <td><?php echo CHtml::encode($model->update_user); ?>
</td>
</tr>
</table>
<?php if(isset($mess)) echo "<script>alert('$mess');</script>";?>
<div class="actionBar1">[<?php echo CHtml::link('返回',$url); ?>]
</div>